﻿using ChurchDiary.BLL;
using ChurchDiary.TableEntity;
using ChurchWebsite.Controllers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ChurchWebsite.Areas.Settings.Controllers
{
    public class DefaultConfigController : BaseController
    {
        //
        // GET: /Settings/DefaultConfig/

        public ActionResult Index()
        {
            return View();
        }
        public JsonResult GetDefaultConfiguration()
        {
            return Json(new BLL_Shared().GetDefaultConfig(),JsonRequestBehavior.AllowGet);
        }
        public JsonResult InsertDetails(EntityDefaultConfig DefaultConfig)
        {
            return Json(new BLL_Shared().InsertDefaultConfig(DefaultConfig), JsonRequestBehavior.AllowGet);
        }
        public JsonResult UpdateDetails(EntityDefaultConfig DefaultConfig)
        {
            return Json(new BLL_Shared().UpdateDefaultConfig(DefaultConfig), JsonRequestBehavior.AllowGet);
        }
        public JsonResult DeleteDetails(Guid DataId)
        {
            return Json(new BLL_Shared().DeleteDefaultConfig(DataId), JsonRequestBehavior.AllowGet);
        }
    }
}
